<template>
  <section class="jumbotron">
    <h3 class="jumbotron-heading">Search Github Users</h3>
    <div>
      <input
        type="text"
        placeholder="enter the name you search"
        v-model="keyword"
      />&nbsp;<button @click="handle">Search</button>
    </div>
  </section>
</template>

<script>
export default {
  name: 'Header',
  data(){
    return {
      keyword:''
    }
  },
  methods:{
    handle(){
      this.$store.dispatch('getCards',this.keyword)
    }
  }
}
</script>

<style scoped>
</style>
